home *** CD-ROM | disk | FTP | other *** search
/ Chip 2007 January, February, March & April / Chip-Cover-CD-2007-02.iso / Pakiet bezpieczenstwa / mini Pentoo LiveCD 2006.1 / mpentoo-2006.1.iso / livecd.squashfs / usr / lib / mozilla-firefox / include / dom / nsIDOMHistory.h < prev    next >
C/C++ Source or Header  |  2006-05-08  |  5KB  |  174 lines

  1. /*
  2.  * DO NOT EDIT.  THIS FILE IS GENERATED FROM nsIDOMHistory.idl
  3.  */
  4.  
  5. #ifndef __gen_nsIDOMHistory_h__
  6. #define __gen_nsIDOMHistory_h__
  7.  
  8.  
  9. #ifndef __gen_domstubs_h__
  10. #include "domstubs.h"
  11. #endif
  12.  
  13. /* For IDL files that don't want to include root IDL files. */
  14. #ifndef NS_NO_VTABLE
  15. #define NS_NO_VTABLE
  16. #endif
  17.  
  18. /* starting interface:    nsIDOMHistory */
  19. #define NS_IDOMHISTORY_IID_STR "896d1d20-b4c4-11d2-bd93-00805f8ae3f4"
  20.  
  21. #define NS_IDOMHISTORY_IID \
  22.   {0x896d1d20, 0xb4c4, 0x11d2, \
  23.     { 0xbd, 0x93, 0x00, 0x80, 0x5f, 0x8a, 0xe3, 0xf4 }}
  24.  
  25. class NS_NO_VTABLE nsIDOMHistory : public nsISupports {
  26.  public: 
  27.  
  28.   NS_DEFINE_STATIC_IID_ACCESSOR(NS_IDOMHISTORY_IID)
  29.  
  30.   /* readonly attribute long length; */
  31.   NS_IMETHOD GetLength(PRInt32 *aLength) = 0;
  32.  
  33.   /* readonly attribute DOMString current; */
  34.   NS_IMETHOD GetCurrent(nsAString & aCurrent) = 0;
  35.  
  36.   /* readonly attribute DOMString previous; */
  37.   NS_IMETHOD GetPrevious(nsAString & aPrevious) = 0;
  38.  
  39.   /* readonly attribute DOMString next; */
  40.   NS_IMETHOD GetNext(nsAString & aNext) = 0;
  41.  
  42.   /* void back (); */
  43.   NS_IMETHOD Back(void) = 0;
  44.  
  45.   /* void forward (); */
  46.   NS_IMETHOD Forward(void) = 0;
  47.  
  48.   /* [noscript] void go (in long aDelta); */
  49.   NS_IMETHOD Go(PRInt32 aDelta) = 0;
  50.  
  51.   /* DOMString item (in unsigned long index); */
  52.   NS_IMETHOD Item(PRUint32 index, nsAString & _retval) = 0;
  53.  
  54. };
  55.  
  56. /* Use this macro when declaring classes that implement this interface. */
  57. #define NS_DECL_NSIDOMHISTORY \
  58.   NS_IMETHOD GetLength(PRInt32 *aLength); \
  59.   NS_IMETHOD GetCurrent(nsAString & aCurrent); \
  60.   NS_IMETHOD GetPrevious(nsAString & aPrevious); \
  61.   NS_IMETHOD GetNext(nsAString & aNext); \
  62.   NS_IMETHOD Back(void); \
  63.   NS_IMETHOD Forward(void); \
  64.   NS_IMETHOD Go(PRInt32 aDelta); \
  65.   NS_IMETHOD Item(PRUint32 index, nsAString & _retval); 
  66.  
  67. /* Use this macro to declare functions that forward the behavior of this interface to another object. */
  68. #define NS_FORWARD_NSIDOMHISTORY(_to) \
  69.   NS_IMETHOD GetLength(PRInt32 *aLength) { return _to GetLength(aLength); } \
  70.   NS_IMETHOD GetCurrent(nsAString & aCurrent) { return _to GetCurrent(aCurrent); } \
  71.   NS_IMETHOD GetPrevious(nsAString & aPrevious) { return _to GetPrevious(aPrevious); } \
  72.   NS_IMETHOD GetNext(nsAString & aNext) { return _to GetNext(aNext); } \
  73.   NS_IMETHOD Back(void) { return _to Back(); } \
  74.   NS_IMETHOD Forward(void) { return _to Forward(); } \
  75.   NS_IMETHOD Go(PRInt32 aDelta) { return _to Go(aDelta); } \
  76.   NS_IMETHOD Item(PRUint32 index, nsAString & _retval) { return _to Item(index, _retval); } 
  77.  
  78. /* Use this macro to declare functions that forward the behavior of this interface to another object in a safe way. */
  79. #define NS_FORWARD_SAFE_NSIDOMHISTORY(_to) \
  80.   NS_IMETHOD GetLength(PRInt32 *aLength) { return !_to ? NS_ERROR_NULL_POINTER : _to->GetLength(aLength); } \
  81.   NS_IMETHOD GetCurrent(nsAString & aCurrent) { return !_to ? NS_ERROR_NULL_POINTER : _to->GetCurrent(aCurrent); } \
  82.   NS_IMETHOD GetPrevious(nsAString & aPrevious) { return !_to ? NS_ERROR_NULL_POINTER : _to->GetPrevious(aPrevious); } \
  83.   NS_IMETHOD GetNext(nsAString & aNext) { return !_to ? NS_ERROR_NULL_POINTER : _to->GetNext(aNext); } \
  84.   NS_IMETHOD Back(void) { return !_to ? NS_ERROR_NULL_POINTER : _to->Back(); } \
  85.   NS_IMETHOD Forward(void) { return !_to ? NS_ERROR_NULL_POINTER : _to->Forward(); } \
  86.   NS_IMETHOD Go(PRInt32 aDelta) { return !_to ? NS_ERROR_NULL_POINTER : _to->Go(aDelta); } \
  87.   NS_IMETHOD Item(PRUint32 index, nsAString & _retval) { return !_to ? NS_ERROR_NULL_POINTER : _to->Item(index, _retval); } 
  88.  
  89. #if 0
  90. /* Use the code below as a template for the implementation class for this interface. */
  91.  
  92. /* Header file */
  93. class nsDOMHistory : public nsIDOMHistory
  94. {
  95. public:
  96.   NS_DECL_ISUPPORTS
  97.   NS_DECL_NSIDOMHISTORY
  98.  
  99.   nsDOMHistory();
  100.  
  101. private:
  102.   ~nsDOMHistory();
  103.  
  104. protected:
  105.   /* additional members */
  106. };
  107.  
  108. /* Implementation file */
  109. NS_IMPL_ISUPPORTS1(nsDOMHistory, nsIDOMHistory)
  110.  
  111. nsDOMHistory::nsDOMHistory()
  112. {
  113.   /* member initializers and constructor code */
  114. }
  115.  
  116. nsDOMHistory::~nsDOMHistory()
  117. {
  118.   /* destructor code */
  119. }
  120.  
  121. /* readonly attribute long length; */
  122. NS_IMETHODIMP nsDOMHistory::GetLength(PRInt32 *aLength)
  123. {
  124.     return NS_ERROR_NOT_IMPLEMENTED;
  125. }
  126.  
  127. /* readonly attribute DOMString current; */
  128. NS_IMETHODIMP nsDOMHistory::GetCurrent(nsAString & aCurrent)
  129. {
  130.     return NS_ERROR_NOT_IMPLEMENTED;
  131. }
  132.  
  133. /* readonly attribute DOMString previous; */
  134. NS_IMETHODIMP nsDOMHistory::GetPrevious(nsAString & aPrevious)
  135. {
  136.     return NS_ERROR_NOT_IMPLEMENTED;
  137. }
  138.  
  139. /* readonly attribute DOMString next; */
  140. NS_IMETHODIMP nsDOMHistory::GetNext(nsAString & aNext)
  141. {
  142.     return NS_ERROR_NOT_IMPLEMENTED;
  143. }
  144.  
  145. /* void back (); */
  146. NS_IMETHODIMP nsDOMHistory::Back()
  147. {
  148.     return NS_ERROR_NOT_IMPLEMENTED;
  149. }
  150.  
  151. /* void forward (); */
  152. NS_IMETHODIMP nsDOMHistory::Forward()
  153. {
  154.     return NS_ERROR_NOT_IMPLEMENTED;
  155. }
  156.  
  157. /* [noscript] void go (in long aDelta); */
  158. NS_IMETHODIMP nsDOMHistory::Go(PRInt32 aDelta)
  159. {
  160.     return NS_ERROR_NOT_IMPLEMENTED;
  161. }
  162.  
  163. /* DOMString item (in unsigned long index); */
  164. NS_IMETHODIMP nsDOMHistory::Item(PRUint32 index, nsAString & _retval)
  165. {
  166.     return NS_ERROR_NOT_IMPLEMENTED;
  167. }
  168.  
  169. /* End of implementation class template. */
  170. #endif
  171.  
  172.  
  173. #endif /* __gen_nsIDOMHistory_h__ */
  174.